IF exists(SELECT * FROM dbo.sysobjects WHERE name='R_trimesterRapportCijfers2PDF' AND xtype='FN') 
BEGIN
	DROP FUNCTION R_trimesterRapportCijfers2PDF
END
GO

CREATE function R_trimesterRapportCijfers2PDF
(@klas varchar(5))
returns table
as
return(
select * from r_trimesterCijfersVoorRapport
where klas like @klas 
)